# coding:utf-8

import yaml
import os
from fastapi import APIRouter
from src.common.response import *

config = APIRouter()


@config.post("/getConfig")
def query_config(file_path='config.yml'):
	with open(file_path, 'r') as f:
		d = yaml.load(f.read(), Loader=yaml.Loader)
	return success_response(d)




